import request from 'utils/request'

/*
    下单购买流程api
*/
let config = {
  headers: {
    'Content-Type': 'application/json;charset=UTF-8'  //之前说的以表单传数据的格式来传递fromdata
  }
};

//提交订单的详情
export const orderDetails = params => request.post("/p/orderDetails", params)



//提交订单获取优惠券
export const orderCouponsPageForApp = params => request.post("/p/order/coupons", params)


//提交订单
export const submitOrder = params => request.post("/p/submitOrder", params, config)

//立即购买参数检查
export const checkBuyNow = params => request.post("/p/app/checkBuyNow", params)


//确认并核对门店订单信息

export const storeOrderDetails = params => request.post("/p/storeOrderDetails", params)

//获取距离最近的门店
export const getNearStore = params => request.post("/getNearStore", params)

// 提交门店订单
export const submitStoreOrder = params => request.post("/p/submitStoreOrder", params)


// 获取门店列表
export const queryStore = params => request.post("/queryStore", params)

// 开启积分抵扣
export const integralDeduct = params => request.post("/p/order/integralDeduct", params)

//保存跨境用户信息
export const overseasSave = params => request.post("/p/overseas/save", params)

// 获取跨境用户信息
export const findOverseasUserInfo = params => request.post("/p/order/findOverseasUserInfo", params)

// 海涛订单详情获取用户信息
export const overseasInfo = params => request.post("/p/overseas/info", params)

// 获取用户最新下单自提点收货人信息
export const userLastSinceMentionContact = params => request.get("/p/userLastSinceMentionContact", params)














